package com.zack.designPattern.state;

public class StateHolder {

	private IState state;
	
	private int count;
	
	public StateHolder(int count){
		this.state = new NewState();
		this.count = count;
	}
	
	public int getCount(){
		return this.count;
	}
	
	public void setState(IState state){
		this.state = state;
	}
	
	public void work(){
		state.handle(this);
	}
}
